﻿   <link href="/Content/css/bootstrap.min.css" rel="stylesheet">
    <link href="/Content/font-awesome/css/font-awesome.css" rel="stylesheet">
    <link href="/Content/css/style1.css" rel="stylesheet">
    <script src="/Content/js/jquery-2.1.1.js"></script>
	
	<style>
	body{
		background-color:#ffffff  !important;
	}
	</style>
 <div class="col-lg-12">
						<div class="ibox-title">
                         <a href="/index.php/Home/Index/choosevideo.html">所有视频</a> >> <a>{$filename}</a>
						
                    </div>
					<volist name="arr" id="vo">
							<div class="file-box">
                                <div class="file">
                                  
                                     
										<if condition="$vo.type == 1 ">
										  <a href="/index.php/Home/Index/choosevideo?filename={$filename}/{$vo["name"]}">
											   <span class="corner"></span>
												 <div class="icon">
												<i class="fa fa-file"></i>
											</div>
											<div class="file-name">
												{$vo["name"]}
												<br>
												<small>{$vo.time|date='Y-m-d H:i:s',###}</small>
											</div>
											
										  </a>
											<else /> 
										   <a href="#">
												   <span class="corner"></span>
												 <div class="icon">
												<i class="img-responsive fa fa-film"></i>
											</div>
											<div class="file-name">
											   {$vo["name"]}
											
											 
											   
											</div>
											<div class="file-name" style="text-align:right;">
											  <small><a class="choose" data-filename="{$filename}/{$vo['name']}">选择</a></small>
											  
											  
											
											</div>
										  </a>
										</if>
                                       
                                  
                                </div>

                            </div>				
				    </volist>

                          
                        </div>
  
    <script>
	var url="{$url}";
        $(document).ready(function(){
          $(".choose").click(function(){
				var str= url+ $(this).data("filename");
				var index = parent.layer.getFrameIndex(window.name);  
				window.parent.loadurl(str);
				parent.layer.close(index);  
		  });
		  
		  	$.get("/index.php/Home/Index/choosevideo1",{},function(data){
							console.log("ss",data);
						});
						
						
        });
		
		
		
    </script>